#ifndef FRUSTUM_H
#define FRUSTUM_H

#include "DeviiMath.h"

namespace devii
{


	
class Frustum
{
public:
	Frustum();
	~Frustum();

	D3DXMATRIX getProjection();

	void setFrustum( D3DXMATRIX view );
	void setProjection( float fovy, float aspect, float zn, float zf );
	float distanceToPlane( float3 &point, D3DXPLANE &plane );

protected:
	D3DXMATRIX	projection;
	
	D3DXPLANE	frustum[6];
};


}

#endif